package com.otitan.la.forest.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.otitan.la.forest.system.dto.RoleDTO;
import com.otitan.la.forest.system.entity.RoleEntity;
import com.otitan.la.forest.system.vo.RoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色表
 *
 * @author jiacs
 * @email xxx
 * @date 2020-09-15 10:34:18
 */
@Mapper
public interface RoleMapper extends BaseMapper<RoleEntity> {

    List<String> findRoleByUserId(String userid);

    /**
     * 分页查询角色
     * @author jiachangsen
     * @param [role, pagePlug]
     * @return java.util.List<com.otitan.la.forest.system.entity.UserEntity>
     * @exception
     * @date 2020/09/22 11:43
     */
    List<RoleVO> findPageData(@Param("role") RoleDTO role, Page<RoleVO> pagePlug);

}
